package com.yilin.platform.service.order;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.platform.base_core.application.PageData;
import com.yilin.platform.entity.order.TransitOrdinaryOrder;
import com.yilin.platform.entity.user.Account;

import java.util.List;
import java.util.Map;

public interface ITransitOrdinaryService extends IService<TransitOrdinaryOrder> {
    void saveOrUpdateTransitOrdinary(Account account, TransitOrdinaryOrder transitOrdinaryOrder);

    //获取分页
    PageData<TransitOrdinaryOrder> getTransitOrdinaryPage(Account loginUser, TransitOrdinaryOrder query, Integer start, Integer limit);


    //根据ID获取
    TransitOrdinaryOrder getTransitOrdinaryOrderById(String id);

    //审核
    void auditingTransitOrdinaryOrder(Account account, TransitOrdinaryOrder transitOrdinaryOrder);

    List<Map<String, Object>> getYearMonthDayMap(String[] truckId);

    Map<String, Object> getOrganizeOrderStatic(String organizeId);

    Map<String, Object> getTruckIdStatic(String truckId, String startDate, String endDate);

    //付款完成
    void paymentTransitOrdinaryOrder(Account account, TransitOrdinaryOrder transitOrdinaryOrder);

    //删除
    void deleteTransitOrdinaryOrder(String id);
}
